package com.zhong.gang.applib.dialog;

import android.content.Context;

import androidx.annotation.NonNull;


import java.util.ArrayList;
import java.util.List;

public class ZhangKouDialog extends SlideDialog {
    public ZhangKouDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    public void initView() {
        super.initView();
        List<String> listdata = new ArrayList<>();
        listdata.add("涨");
        listdata.add("扣");
        bind.loop.setArrayList(listdata);
        bind.loop.setNotLoop();
    }

    @Override
    public void finish() {
        if (listener != null) {
            int postion = bind.loop.getCurrentItem();
            listener.onSlideBack(postion);
        }
    }
}
